package org.example.hansp.system_;

import javax.rmi.CORBA.Util;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Arrays;


public class SystemException {
    public static void main(String[] args) {
LocalDateTime localDateTime = LocalDateTime.now();


       /* System.out.println("ok1");
        System.out.println("ok2");
        System.exit(0);
        System.out.println("ok3");*/
/*
        int[] src = {1, 2, 3, 4};
        int[] dest = new int[4];
        *//*arams:
        src – the source array.
        srcPos – starting position in the source array.
        dest – the destination array. destPos – starting position in the destination data.
        length – the number of array elements to be copied.
        * *//*
        System.arraycopy(src, 1, dest, 0, 3);
        System.out.println(Arrays.toString(dest));*/
        C c = new C();
        testTime(c);
        A a = new A();
        testTime(a);
        B b = new B();
        testTime(b);





    }
    public static void testTime(Util1 util1){
        long start=System.currentTimeMillis();
        util1.job();
        long end=System.currentTimeMillis();
        System.out.println(end-start);
    }




}


